/*
 * Copyright (c) 2022.  Asiacom Technology Inc. All rights reserved
 */

package com.swanclouds.redfish.systems.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.swanclouds.model.common.ErrorResponse;

/**
 * @author 张立强
 * @version jdk1.8.0
 */
public class BondResp {

	@JsonProperty("error")
	private ErrorResponse error;

	@JsonProperty("@odata.id")
	private String dataId;
	@JsonProperty("@odata.type")
	private String dataType;

	@JsonProperty("BondingEnable")
	private String bondingEnable;

	@JsonProperty("BondedInterface")
	private String bondedInterface;

	@JsonProperty("WorkMode")
	private String workMode;

	public String getBondingEnable() {
		return bondingEnable;
	}

	public String getBondedInterface() {
		return bondedInterface;
	}

	public String getWorkMode() {
		return workMode;
	}

	@Override
	public String toString() {
		ObjectMapper objectMapper = new ObjectMapper();
		try {
			return objectMapper.writeValueAsString(this);
		} catch (JsonProcessingException e) {
		}
		return "BondResp {" +
				"bondingEnable='" + bondingEnable + '\'' +
				", bondedInterface='" + bondedInterface + '\'' +
				", workMode='" + workMode + '\'' +
				'}';
	}
}
